//
//  ExtensionDateFormatter.swift
//  icloud
//
//  Created by raymond on 2022/5/21.
//

import Foundation

extension Formatter {
  static let str2date: DateFormatter = {
    let formatter = DateFormatter()
    //formatter.calendar = Calendar(identifier: Calendar.Identifier.)
    //formatter.locale = Locale(identifier: "en_US_POSIX")
    formatter.locale = Locale(identifier: "zh_CN")
    formatter.timeZone = TimeZone(secondsFromGMT: 8)
    formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
    return formatter
  }()
}
